<template>
	<view class="login flex-center">
		<view class="login-box flex-center">
			<view class="logo">
				<image src="/static/imgs/menus1.jpg" mode="aspectFill"></image>
			</view>
			<form @submit="submitForm">
				<view class="list">
					<view class="title">用户名</view>
					<input type="text" placeholder="请输入用户名">
				</view>
				<view class="list">
					<view class="title">密码</view>
					<input type="password" placeholder="请输入密码">
				</view>
				<button class="flex-center" form-type="submit">登录</button>
				
			</form>
			<view class="bottom flex-between">
				<navigator url="/pages/login/register" hover-class="none">注册</navigator>
				<navigator url="/pages/login/forgetPwd" hover-class="none">忘记密码</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="less">
	@main-color:#039702;
	page{
		background: #fff;
	}
	.login{
		height: 100vh;
		.login-box{
			flex-direction: column;
			.logo{
				width: 160rpx;
				height: 160rpx;
				border-radius: 20rpx;
				overflow: hidden;
				image{
					width: 100%;
					height: 100%;
				}
			}
			form{
				width: 650rpx;
				margin: 150rpx 0 30rpx;
				.list{
					margin-bottom: 50rpx;
					border-bottom: 2px solid #eee;
					.title{
						font-size: 34rpx;
						font-weight: bold;
					}
					input{
						height: 60rpx;
						font-size: 32rpx;
					}
				}
				button{
					font-size: 34rpx;
					background: @main-color;
					color:white;
					margin-top: 100rpx;
				}
			}
			.bottom{
				width: 650rpx;
				font-size: 32rpx;
				color:@main-color;
			}
		}
	}
</style>
